package com.hellpro.lolbox.acticity.view;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

import com.hellpro.lolbox.R;
import com.hellpro.lolbox.base.LolBaseActivity;

import butterknife.BindView;

public class VideoLinkActivity extends LolBaseActivity implements ILiveLinkActivity{


    @BindView(R.id.main_link_return)
    ImageView mainLinkReturn;
    @BindView(R.id.main_link_btn_fabu)
    Button mainLinkBtnFabu;

    @Override
    public int getLayoutId() {
        return R.layout.activity_video_link;
    }

    @Override
    public void initView() {

        mainLinkReturn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                AlertDialog.Builder builder = new AlertDialog.Builder(VideoLinkActivity.this);
                builder.setTitle("提示").setMessage("真的要退出吗").setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        finish();
                    }
                }).setNegativeButton("取消", null).show();
            }
        });

        mainLinkBtnFabu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(VideoLinkActivity.this, "正在完善", Toast.LENGTH_SHORT).show();
            }
        });

    }

    @Override
    public ImageView getIvBack() {
        return mainLinkReturn;
    }

    @Override
    public Button getBtnFaBu() {
        return mainLinkBtnFabu;
    }
}
